]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Avoid duplicating most used applications in the AppDisplay cache
authorColin Walters <walters@verbum.org>
Fri, 26 Jun 2009 22:35:48 +0000 (18:35 -0400)
committerColin Walters <walters@verbum.org>
Tue, 30 Jun 2009 20:42:00 +0000 (16:42 -0400)
All used applications should be in the database from the menus
anyways.

js/ui/appDisplay.js

index b2ef0a0e0091d0b51825ee4c0a4edda78cf23c82..a18d3af04a03f2ffdb84c15ea9b86864dec677c9 100644 (file)
@@ -344,15 +344,6 @@ AppDisplay.prototype = {
             this._addAppForId(appId);
         }
 
-        // Some applications, such as Evince, might not be in the menus,
-        // but might be returned by the applications monitor as most used
-        // applications, in which case we include them.
-        let mostUsedAppInfos = AppInfo.getMostUsedApps(MAX_ITEMS);
-        for (let i = 0; i < mostUsedAppInfos.length; i++) {
-            let appInfo = mostUsedAppInfos[i];
-            this._addApp(appInfo);
-        }         
-
         this._appsStale = false;
     },